package interpreter.bytecodes;

import interpreter.VirtualMachine;
import java.util.Vector;

/**
 *
 * @author Kristofer Selbekk
 */
public class HaltByteCode extends ByteCode {
    

    // Implementations

    /**
     * Initializes the halt byte code with no arguments
     */
    public void init( Vector<String> args ) {
        // Do nothing
    }

    /**
     * Action: Halt execution
     * 
     * @param rt
     */
    public void exec( VirtualMachine rt ) {
        rt.haltProgram();
    }

    public Object getArgs() {
        return null;
    }
}
